package com.dominator.repository;

import com.dominFramework.core.dao.SqlDao;
import com.dominFramework.core.typewrap.Dto;
import com.dominFramework.core.typewrap.Dtos;
import com.dominator.mybatis.dao.T_ticketPO;
import com.dominator.utils.dao.JdbcHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class DaoTicket {

    @Resource
    JdbcHelper jh;


    @Autowired
    SqlDao sqlDao;


    public T_ticketPO selectByUserId(String userId) {
        Dto qDto = Dtos.newDto("user_id", userId);
        T_ticketPO row = (T_ticketPO) sqlDao.selectOne("Ticket.selectByUserId", qDto);
        return row;
    }
}
